package com.dearbinge.data.pojo.commodity.vo;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 商品信息 实体类
 *
 * @author wes
 * @date 2019/1/12
 */
@Api("商品信息")
@ApiModel
public class CommodityMessageResponseVO implements Serializable {

    /**
     * 商品ID
     */
    @ApiModelProperty("商品ID")
    private Integer id;

    /**
     * 商品类目id
     */
    @ApiModelProperty("商品类目id")
    private String commodityType;

    /**
     * 发布商品的用户id
     */
    @ApiModelProperty("发布商品的用户id")
    private String userId;

    /**
     * 图片
     */
    @ApiModelProperty("图片")
    private String imgUrl;

    /**
     * 展示价格（在规格价格之内）
     */
    @ApiModelProperty("展示价格（在规格价格之内）")
    private BigDecimal retailPrice;

    /**
     * 参考价
     */
    @ApiModelProperty("参考价")
    private BigDecimal originalPrice;

    /**
     * 商品名字
     */
    @ApiModelProperty("商品名字")
    private String commodityName;

    /**
     * 商品编码
     */
    @ApiModelProperty("商品编码")
    private String commodityCode;

    /**
     * 商品描述
     */
    @ApiModelProperty("商品描述")
    private String commodityDescribe;

    /**
     * 商品对应的店铺ID
     */
    @ApiModelProperty("商品对应的店铺ID")
    private String commodityShopId;

    /**
     * 商品状态 （0下架    1上架）
     */
    @ApiModelProperty("商品状态 （0下架    1上架）")
    private Boolean commodityStatus;

    /**
     * 总库存
     */
    @ApiModelProperty("总库存")
    private Integer commodityStock;

    /**
     * 起运发货地
     */
    @ApiModelProperty("起运发货地")
    private String payLocal;

    /**
     * 品牌
     */
    @ApiModelProperty("品牌")
    private String brand;

    /**
     * 货号（商品本身携带的）
     */
    @ApiModelProperty("货号（商品本身携带的）")
    private String goodsCode;

    /**
     * 地理位置名称
     */
    @ApiModelProperty("地理位置名称")
    private String positionName;

    /**
     * 经度
     */
    @ApiModelProperty("经度")
    private String longitude;

    /**
     * 纬度
     */
    @ApiModelProperty("纬度")
    private String latitude;

    /**
     * 创建时间
     */
    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("月销量（最近三十天销量）")
    private Integer monthlySales;



    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCommodityType() {
        return commodityType;
    }

    public void setCommodityType(String commodityType) {
        this.commodityType = commodityType;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }

    public BigDecimal getRetailPrice() {
        return retailPrice;
    }

    public void setRetailPrice(BigDecimal retailPrice) {
        this.retailPrice = retailPrice;
    }

    public String getCommodityName() {
        return commodityName;
    }

    public void setCommodityName(String commodityName) {
        this.commodityName = commodityName;
    }

    public String getCommodityCode() {
        return commodityCode;
    }

    public void setCommodityCode(String commodityCode) {
        this.commodityCode = commodityCode;
    }

    public String getCommodityDescribe() {
        return commodityDescribe;
    }

    public void setCommodityDescribe(String commodityDescribe) {
        this.commodityDescribe = commodityDescribe;
    }

    public String getCommodityShopId() {
        return commodityShopId;
    }

    public void setCommodityShopId(String commodityShopId) {
        this.commodityShopId = commodityShopId;
    }

    public Boolean getCommodityStatus() {
        return commodityStatus;
    }

    public void setCommodityStatus(Boolean commodityStatus) {
        this.commodityStatus = commodityStatus;
    }

    public Integer getCommodityStock() {
        return commodityStock;
    }

    public void setCommodityStock(Integer commodityStock) {
        this.commodityStock = commodityStock;
    }

    public String getPayLocal() {
        return payLocal;
    }

    public void setPayLocal(String payLocal) {
        this.payLocal = payLocal;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public String getGoodsCode() {
        return goodsCode;
    }

    public void setGoodsCode(String goodsCode) {
        this.goodsCode = goodsCode;
    }

    public String getPositionName() {
        return positionName;
    }

    public void setPositionName(String positionName) {
        this.positionName = positionName;
    }

    public String getLongitude() {
        return longitude;
    }

    public void setLongitude(String longitude) {
        this.longitude = longitude;
    }

    public String getLatitude() {
        return latitude;
    }

    public void setLatitude(String latitude) {
        this.latitude = latitude;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getMonthlySales() {
        return monthlySales;
    }

    public void setMonthlySales(Integer monthlySales) {
        this.monthlySales = monthlySales;
    }

    public BigDecimal getOriginalPrice() {
        return originalPrice;
    }

    public void setOriginalPrice(BigDecimal originalPrice) {
        this.originalPrice = originalPrice;
    }

    @Override
    public String toString() {
        return "CommodityMessageResponseVO{" +
                "id=" + id +
                ", commodityType='" + commodityType + '\'' +
                ", userId='" + userId + '\'' +
                ", imgUrl='" + imgUrl + '\'' +
                ", retailPrice=" + retailPrice +
                ", originalPrice=" + originalPrice +
                ", commodityName='" + commodityName + '\'' +
                ", commodityCode='" + commodityCode + '\'' +
                ", commodityDescribe='" + commodityDescribe + '\'' +
                ", commodityShopId='" + commodityShopId + '\'' +
                ", commodityStatus=" + commodityStatus +
                ", commodityStock=" + commodityStock +
                ", payLocal='" + payLocal + '\'' +
                ", brand='" + brand + '\'' +
                ", goodsCode='" + goodsCode + '\'' +
                ", positionName='" + positionName + '\'' +
                ", longitude='" + longitude + '\'' +
                ", latitude='" + latitude + '\'' +
                ", createTime=" + createTime +
                ", monthlySales=" + monthlySales +
                '}';
    }
}
